import java.util.Arrays;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: ${USER}
 * Date: ${YEAR}-${MONTH}-${DAY}
 * Time: ${TIME}
 */
public class Test {
    public static void main(String[] args) throws CloneNotSupportedException{
        Student[] students = new Student[3];
        Student student1 = new Student("张三", 10, 10);
        Student student2 = new Student("李四", 90, 10);
        Student student3 = new Student("王五", 8, 10);
        students[0] = student1;
        students[1] = student2;
        students[2] = student3;
        Arrays.sort(students);
        Student student4 = (Student)student1.clone();
        student4.money.money = 20;
        System.out.println(student1);
        System.out.println(student4);
    }
}